package com.hyts.dbmeta.base;

/**
 * project-name:coffice-toolbox
 * package-name:com.hyts.dbmeta.base
 * author:Libo/Alex
 * create-date:2019-06-17 20:36
 * copyright:libo-hyts-github
 * email:libo2dev@aliyun.com
 * description:此类主要用于: 基础连接配置
 */
public interface BaseConnectionConfig {

    /**
     * 连接字符串
     * @param port
     * @param dataBaseName
     * @param userName
     * @param password
     * @param encoding
     * @return
     */
    String getConnectionStr(Integer port,String dataBaseName,String userName,String password,String encoding);


    /**
     * 连接字符串
     * @param ipAddress
     * @param port
     * @param dataBaseName
     * @param userName
     * @param password
     * @param encoding
     * @return
     */
    String getConnectionStr(String ipAddress,Integer port,String dataBaseName,String userName,String password,String encoding);


    /**
     * 连接字符串
     * @param ipAddress
     * @param port
     * @param dataBaseName
     * @return
     */
    String getConnectionStr(String ipAddress,Integer port,String dataBaseName,String userName,String password);


}